#include "ThreadPool.hpp"
#include <iostream>
#include <memory>
int main()
{
    srand(time(nullptr));
    // std::unique_ptr<ThreadPool<Task>> threadpool(new ThreadPool<Task>());
    ThreadPool<Task>::GetInstance()->Start();
    sleep(5);
    while (1)
    {
        int x = rand() % 100 + 1;
        usleep(1234);
        int y = rand() % 200;
        usleep(1234);
        char oper = opers[rand() % opers.size()];

        Task t(x, y, oper);
        ThreadPool<Task>::GetInstance()->Push(t);
        // sleep(1);
    }
    return 0;
}